package domain.util;

public class Subfield {

	private String name, body;

	public Subfield(String name, String body) {
		this.name = name;
		this.body = body;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
	
	@Override
	public String toString() {
		if (name.equals("00"))
			return body;
		return "$" + name + " " + body;
	}
	
}
